package de.sehversuche.pse.access;

import java.util.List;

import de.sehversuche.pse.model.PseTag;

/**
 * Data access api for tags.
 * 
 * @author Lars Heller
 * @version $Id$
 */
public interface TagDao {
	/**
	 * Load all top level tags.
	 * 
	 * @return ordered {@link List} of top level {@link PseTag}s
	 */
	List<PseTag> loadRootTags();

	/**
	 * Load all children of given {@code tag}.
	 * 
	 * @param tag
	 *            parent {@link PseTag}
	 * @return ordered {@link List} of child tags
	 */
	List<PseTag> loadChildren(PseTag tag);
}
